﻿using UnityEngine;
using System.Collections;
using UI;

public class MyItemObj : MonoBehaviour {

    public UILabel playName;
    public UILabel chatInfo;
    public UILabel time;
    public GameObject HeroIcon;

    public void InitMyItemObj(string PlyerName,string contenxt ,string playerID)
    {
        HeroIcon.GetComponent<HeroIcon>().SetHeroWithId(playerID);
        playName.text = PlyerName;
        chatInfo.text = contenxt;
        
    }
}
